package qreasymarket.movil;

import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.TabHost;

public class DeliveryActivity extends TabActivity{

	@Override
	public void onCreate(Bundle savedInstanceState){
		
		super.onCreate(savedInstanceState);
		setContentView(R.layout.servicio_delivery);
		
		TabHost tabHost=getTabHost();
		TabHost.TabSpec spec;
		
		Intent intent;
		Resources res= getResources();
		
		intent = new Intent().setClass(this, TarifaPestana.class);
		spec=tabHost.newTabSpec("Pestana1").setIndicator("Tarifas", res.getDrawable(R.drawable.tarifa_pestana)).setContent(intent);
		tabHost.addTab(spec);
		
		intent = new Intent().setClass(this, HorarioPestana.class);
		spec=tabHost.newTabSpec("Pestana2").setIndicator("Horarios",res.getDrawable(R.drawable.horario_pestana)).setContent(intent);
		tabHost.addTab(spec);
		
		
	}

}
